package com.tianhui.consignortwofei.mvp.model.enty.insure;

import android.text.TextUtils;

import com.fgs.common.interf.ISelectItemValue;

import java.math.BigDecimal;

/**
 * @author fgs
 * @date 2020/9/1
 * @description
 **/
public class InsureTypeInfo implements ISelectItemValue {
    //    public String createTime;
//    public String createBy;
//    public String deductible;
//    public String deductibleFee;
//    public String flag;
//    public String id;
    public int minAmount;
    public int minPremium;
    public int maxAmount;
    public String rate;
    public String schemeName;
    //    public String modifyBy;
//    public String modifyTime;
//    public String premium;
//    public String premiumuse;
//    public String productCode;
//    public String rateuser;
    public String schemeCode;
//    public String schemeType;

    @Override
    public String getSelectItemText() {

        rate = TextUtils.isEmpty(rate) ? "0" : rate;
        BigDecimal rateResult = new BigDecimal(rate);

        return schemeName + " " + "保率" + rateResult.toString() + " " + "保额（" + minAmount + "-" + maxAmount + "万元）";
    }

    @Override
    public String getSelectItemTextValue() {
        return null;
    }
}
